Skip to content

fix(id): apply pinned formatters to clear biome/prettier/rustfmt/statix drift (Refs #13751) - #13850

Merged
dezren39 merged 619 commits into
mainfrom
code-j/13751-format-drift
Nov 24, 2026
Merged

dezren39 merged 619 commits into
mainfrom
code-j/13751-format-drift

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Refs #13751 — follow-up slice to #13826 (xaltha's bun root-cause fix, still open). This PR clears the independent formatting drift; it does not close the issue (bun cascade + test-web-unit kitty parity remain).

Summary

Five pkgs/id flake checks failed on main with exit 1 (real drift, not the bun exit-127 cascade): prettier-check, biome-check, rustfmt-check, statix-check, and their aggregate treefmt-check. Fixed by running the repo's own treefmt write (pinned binaries via nix develop) scoped to pkgs/id/treefmt.toml. 115 files, purely mechanical reformatting; no vendor, generated, lockfile, or target paths touched.

Evidence

Before (origin/main d0025c8ad08, reproduced locally through ~/tools/fleet-build-lock):

  • nix build .#checks.x86_64-linux.statix-check → exit 1, single finding nix-common.nix:65 (hash = zip.hash should be inherit)
  • rustfmt-check → exit 1 (Diff in ... across tests/src)
  • biome-check → exit 1 (Found 35 errors, 20 files)
  • prettier-check → exit 1 (Code style issues found in 45 files, 44 real + 1 line-wrap fragment, matches CI run 45260211824 exactly)
  • treefmt-check → exit 1 (formatted 1085 files (108 changed))

After (this branch a72b62b5769):

Ran on the laptop; full nix flake check was not run locally (it needs the bun fix from #13826 first, plus KVM for the NixOS VM checks).

Merge Danger

Low. Diff is formatter output only, verified byte-equivalent intent by the five checks themselves. Order with #13826 does not matter: this PR says Refs, not Fixes, so whichever merges first cannot prematurely close #13751. Remaining after both: test-web-unit kitty parity (symlink dangle, separate slice per #13826's notes).

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T23:23:41Z",
    "session_id": "ses_e5df56f0f96ffehM9jP4Rflh06",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/fleet/13751-format",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/fleet/13751-format",
      "repo": "developing-today/code",
      "branch": "code-j/13751-format-drift",
      "sha": "a72b62b576915271e6eecfe5a38c72c8342c7a89"
    },
    "auth_subject": "oc-code-06",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Walkthrough

Warning

Review details and warnings were omitted to fit the comment limit.

dezren39 and others added 26 commits November 23, 2026 19:08
Dated design record for Drew's 2026-11-23 multi-transport direction:
epic #13926, head design #13929 (transport adapter contract), direction
recorded on #13752. Folder per the dated-record convention; index link
in doc/README.md.
…reach-record

doc: multi-transport reach — programme direction record
Fleet's section of the whole-project merged priority list from the
Code Book programme census (tracker #13905, Deliverable 2): items 1, 2,
3 and 28 in full (type, description, status, related issues, timing,
ordering rationale), PM-owned topic-section pointers for temporary
builds/custom connections and the central compile coordinator (#13900),
and one-line cross-links to the primary books for items 6, 7, 9, 14,
17, 19, 25, 26, 27, 29 and 30.

Verified: nix build .#fleet-docs with zero warnings; SUMMARY entries
and files on disk in set equality.
mcpx's section of the whole-project merged priority list from the
Code Book programme census (tracker #13905, Deliverable 2): item 25 in
full (type, description, status, related issues, timing, ordering
rationale, with the exemption-tail counting rule stated against this
book's pinned inventory), and one-line cross-links to the primary books
for items 12, 14, 22, 27, 28, 29 and 30.

Registered in both navigation systems: docs/SUMMARY.md and the
compendium manifest (docs/compendium.manifest.json, chapter
research-program).

Verified: nix build .#mcpx-docs (only the pre-existing search-index
size warning, also present on pristine main); TestEveryDocumentHasAChapter
passes; no SUMMARY entry lacks a file on disk.
…eries, fetch scripts (Drew steer 2026-11-23 18:46 CST)
Coverage ledger, Turso estate list, surveys, LLM evidence pack, sideline deposits and the Space content pack, landed per the work-product landing rule after two laptop-worktree flag stops (recorded on #13900).
…13900

docs: dated research record for the PM book programme (#13900)
…nsus-lab

docs: land Census C lab census for the Code Book programme (#13905)
book: the Code Book — whole-project book (#13905)
…-roadmap

book(fleet): high-level roadmap chapter (Code Book programme #13905)
…roadmap

book(mcpx): high-level roadmap chapter (Code Book programme #13905)
…form

docs(lab-book): census D — platform & toolchain record (#13905)
…-roadmap

book(atlas): High-level roadmap chapter (Code Book programme #13905)
…-report

docs(audit7): Lane 1 PR-SWEEP report — 199 open PRs dispositioned, 103 merged
dezren39 and others added 26 commits November 23, 2026 23:07
…eshness

impl(atlas): D1 hot-cache freshness evaluator — per-class watermark/TTL rules (#13101)
First slice of #8282 (design #6278 D5): TemplateManifest format,
SourcedRole/Credential/UserDatum strip rules, and export_template
with the D5 invariant (a template never carries another user's
identity material) stated as property tests plus a fixture unit
test. Import with fresh world identity is the next slice.
…mission

feat(atlas-search): D1 hot-cache admission policy — heat, heavy-query, tenant quotas, eviction (#13103)
…late-world-export

feat(id-worlds): template manifest + strip-rules export (#8282 slice 1)
Resolution (main architecture wins, PR type layer kept):
- space.ts: keep main CONTEXT + docs, add PR DisclosureContext type, type CONTEXT
- key.ts: keep main KEY_SCHEMA-2 field order, single DisclosureContext-typed field
- index.ts/service.ts/cache_do.ts: keep main executeSearch/3-arg shape, CONTEXT constant
- key.test.ts: keep main canonical + #12622 tests, add PR 64-case generated isolation test
- worker.test.ts: keep both forwarded-body captures
- README: main superset + PR context/type note
…ker-context

atlas(worker): key hosted search cache by disclosure context
docs(pm-stack): E7 — user→tenant in #3811-era docs
…mapping

fix(fleet-agent): map oc-* lanes to their family's registered worker
…schema

feat(id): tenancy schema + migration baseline (E1 of #9083)
The permissions test opened a draft at [1,1] then confirmed without
appending [[3,1],[3,2]], so ConfirmStroke committed only [[1,1]] while
the assertion expected COMMITTED_A1. Mirror the six-step vector.
…machine

The first push of this took "never handed out in a report's answer" to
mean "never reached a machine". Nearly everything held gets there by
being sent to the host and getting no answer, which has two meanings:
the host never had it, or the host did it and the answer was lost. The
second kind the edge would have done again once it could. A test
written first showed it: a comment the laptop made, its answer lost,
the laptop then away, and an hour later the edge made it a second time.

Now a held action is the edge's to do only when it is known to have
reached no machine, and carries `unsent` when it is:

- It never set off toward a machine, or it set off once and that one
  asking was answered by Cloudflare's own 530 (error 1033 for a tunnel:
  no connection to send anything down). Any other end (no answer, a
  gateway's 502, a wait that ran out) leaves it the host's by name.
- Every setting-off is counted under the action's name. A device gives
  up on a send before the edge gives up on the host, and offers the
  name again: word that the second asking never arrived says nothing
  of the first.
- One waiting here that reached nobody is not sent toward the host
  when it is offered again. A name the edge has taken is not sent to
  the host as well. A name whose first asking is still out, offered
  again while something else about the same thing waits, is kept as
  the host's.
- A newer action about a thing waits behind an older one the host may
  have, where before it waited only behind one handed out. A host's
  answer that cannot be read settles the name.
- What was held by the version in service has no word either way, and
  is left to the laptop.

Also from reading the change again: what is being done is marked as
soon as it is taken, so that a newer action about the same thing that
is already part-way in waits for it; a newer action looks again after
each older one instead of going by a list it read once; and only a
pass that tried something and did nothing pauses the next.

The owner is told which of three each held action is (either side's,
a machine's only, or one a machine was given or may have got): when it
is kept, in "What you did", on the Machines screen and in the device's
note. Dropped after a day, the last kind is said to be worth checking.
The health answer counts the three.

Tests: 437 pass (13 more at the edge for this, one for the app's
wording). Real runtime: 46 checks, with the host's stand-in answering
530 (the Worker makes the comment once) and 502 (it does not). 71
planted faults, 68 caught; the three left change nothing that can be
seen. The Worker's reading of the host's answer, turned each way in
the real runtime, fails the checks it should.

Refs #13831, #13398.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YLT5K1QVuzZjfWGFhXSSNF
feat(pm-console): the edge does what it holds for a machine itself, once it can
…position

feat(id-worlds): durable per-world journal positions on lease entries (#13711)
…earch

Fleet charter, R&D book and issue-by-issue dependency map
Mechanical prettier --write (pinned 3.9.10, same as nixpkgs
prettier used by prettier-check) over the overlap set that landed
drifted on main after the branch point. No intent change.
@dezren39
dezren39 merged commit 4c75710 into main Nov 24, 2026
@dezren39
dezren39 deleted the code-j/13751-format-drift branch November 24, 2026 06:16
@dezren39

Copy link
Copy Markdown
Member Author

Batch A merge record (lane code-i, task 21622): merged 4c75710 via --merge. Resolution: merge-main-in 14b4d89 (keep-newer overlaps) + fcf799c prettier --write over 5 residual-drift book files (pinned prettier 3.9.10 = nixpkgs pin; 187+/187- mechanical only). Verification in fresh worktree off origin/main: local merge conflict-free; prettier --check clean on all 5 files. Main-side note: the 5 files were drifted on main itself at merge time (verified main blob fails check identically) — follow-up owners may want prettier-check as a blocking check. Progress on #13903 to follow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

main-broken: developing-today/code id @2d21fb3 — full (main tier): nix flake check

2 participants